<?php
session_start();
if(isset($_SESSION['valid_email'])){
	unset($_SESSION['valid_email']);
	session_destroy();
}elseif(isset($_COOKIE['valid_email'])){
	setcookie ("valid_email", "", 1,'/') or die('cannot delete cookie');
}

header("Location: ../main/index.php");
?>